#include "LuaFlightDynamicModel.h"

#include "FlightDynamicModel.h"

#include "luawrapper.hpp"
#include "luawrapperutil.hpp"


static luaL_Reg FlightDynamicModel_table[] =
{
	{ NULL, NULL }
};

static luaL_Reg FlightDynamicModel_metatable[] =
{
	{ "longitude", luaU_getset<FlightDynamicModel, double, &FlightDynamicModel::longitude> },
	{ "latitude", luaU_getset<FlightDynamicModel, double, &FlightDynamicModel::latitude> },
	{ "altitude", luaU_getset<FlightDynamicModel, double, &FlightDynamicModel::altitude> },
	{ "time", luaU_getset<FlightDynamicModel, double, &FlightDynamicModel::time> },
	{ NULL, NULL }
};

extern int luaopen_FlightDynamicModel(lua_State* L)
{
	luaW_register<FlightDynamicModel>(L, "FlightDynamicModel", FlightDynamicModel_table, FlightDynamicModel_metatable);
	return 1;
}
